package com.hnkywl.sts.entity.cggl;

import com.hnkywl.sts.entity.BaseEntity;
import com.hnkywl.sts.entity.xsgl.Kh;
import com.hnkywl.sts.entity.xsgl.Xsd;
import com.hnkywl.sts.entity.xsgl.Xsmx;
import org.hibernate.annotations.Where;

import javax.persistence.*;

/**
 * Created with IntelliJ IDEA.
 * User: jerry
 * Date: 13-6-14
 * Time: 下午10:26
 * To change this template use File | Settings | File Templates.
 */
@Entity
@Table(name = "T_BIZ_ZJBCDRZ")
@Where(clause = "deleted!='1'")
public class ZjbcdRz extends BaseEntity {
    @Id
    @SequenceGenerator(name = "seqZjbcdRz", allocationSize = 1, sequenceName = "SEQ_BIZ_ZJBCDRZ")
    @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "seqZjbcdRz")
    private Long id;

    @ManyToOne
    @JoinColumn(name = "KH_ID")
    private Kh kh;

    @ManyToOne
    @JoinColumn(name = "XSD_ID")
    private Xsd xsd;

    @ManyToOne
    @JoinColumn(name = "XSMX_ID")
    private Xsmx xsmx;

    @ManyToOne
    @JoinColumn(name = "ZJBCD_ID")
    private Zjbcd zjbcd;

    /**
     * 原库存成本
     */
    private Double ykccb;

    /**
     * 现库存成本
     */
    private Double xkccb;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Kh getKh() {
        return kh;
    }

    public void setKh(Kh kh) {
        this.kh = kh;
    }

    public Xsd getXsd() {
        return xsd;
    }

    public void setXsd(Xsd xsd) {
        this.xsd = xsd;
    }

    public Xsmx getXsmx() {
        return xsmx;
    }

    public void setXsmx(Xsmx xsmx) {
        this.xsmx = xsmx;
    }

    public Zjbcd getZjbcd() {
        return zjbcd;
    }

    public void setZjbcd(Zjbcd zjbcd) {
        this.zjbcd = zjbcd;
    }

    public Double getYkccb() {
        return ykccb;
    }

    public void setYkccb(Double ykccb) {
        this.ykccb = ykccb;
    }

    public Double getXkccb() {
        return xkccb;
    }

    public void setXkccb(Double xkccb) {
        this.xkccb = xkccb;
    }
}
